import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import pojo.People;

import javax.lang.model.element.Name;

public class Mytest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("annobean.xml");
        People people = context.getBean("people",People.class);
        System.out.println(people.name);
    }

}
